//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef __USBDBG_H__
#define __USBDBG_H__

#define USB_DBG 0

#if (USB_DBG)
#define DEBUGCHK(x) //assert(x);
#define _TEXT_(x) x
#define DIF(m, x)    if ((m)) do { x ; } while (0)
#define DPRINTF(x)  cprintf x;
#define DPRINTFN(m, x)  if((m)) cprintf x;
#else
#define DEBUGCHK(x) //assert(x);
#define _TEXT_(x) //x
#define DIF(m, x)   // if ((m)) do { x ; } while (0)
#define DPRINTF(x)  //Dprintf x;
#define DPRINTFN(m, x)//  if((m)) Dprintf x;
#endif

#define DBG_INIT        1
#define BBB_XFER        0
#define DBG_REG         0
#define DBG_ISR         0
#define DBG_BULK_THREAD 0
#define DBG_TASK_THREAD 0
#define DBG_XMIT        0
#define DBG_RECV        0
#define FUNC            0
#define DBG_FLASH       0
#define DBG_CBW         0
#define DBG_STALL       0
#define DBG_STATUS      0
#define DBG_SLEEP       0
#define DBG_CSW         0
#define DBG_PKG         0
#define DBG_TASK        0
#define DBG_XFER        0
#define DBG_XFERL       0
#define DBG_ERR         1
#define DBG_CTRL_REQ    0
#define DBG_UFC         0
#define EP0_MSGS_ON     0
#define EP0_OUTMSGS_ON  0
#define DBG_PRO         0
#define DBG_DATA        0
#define DBG_BULK        0
#define DBG_WRITE10     0
#define DBG_STRING      0
//cmd
#define DBG_CMD                0
#define DBG_CMD_READ10         0
#define DBG_CMD_WRITE10        0
#define DBG_CMD_REQUESTSENSE   0
#define DBG_CMD_INQUIRY        0
#define DBG_CMD_VERIFY         0

//++++++++++++++++++++++++++++++++++++

#endif
